<?php echo '<?xml version="1.0" encoding="UTF-8"?>';?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<?php foreach($data as $k=>$v){ 
	echo '<url>';
	echo '<loc>'.SITE_URL.$v[$uses[0]]['url'].'</loc>';
	echo '<lastmod>'.substr($v[$uses[0]]['modified'],0,strpos($v[$uses[0]]['modified'],' ')).'</lastmod>';
	echo '<changefreq>monthly</changefreq>';
	echo '<priority>1</priority>';
	echo '</url>';
}?> 

</urlset> 
